import request from "@/utils/request.js"

/*获取班级列表 */
export function listClasses(params){
    return request({
         url:'/classes/list',
         method:'GET',
         params,
    })
   
}

/*删除班级列表 */
export function deleteClasses(classId){
    return request({
         url:`/classes/${classId}`,
         method:'DELETE',
    })
   
}

/*添加班级名称 */
export function addClasses(data){
    return request({
         url:'/classes',
         method:'POST',
         data,
    })
   
}

/*编辑班级名称 */
export function editClasses(data){
    return request({
         url:'/classes',
         method:'PUT',
         data,
    })
   
}